package com.skillworld.webapp.model.courseservice;

import com.skillworld.webapp.model.enrollment.Examination;
import com.skillworld.webapp.model.lesson.Lesson;

public class LessonInfo 
{
    private Lesson lesson;
    private Examination examination;
    private boolean enrolled;
    
    
    public LessonInfo(Lesson lesson, Examination examination)
    {
        this.lesson = lesson;
        this.examination = examination;
        this.enrolled = (examination != null);
    }


    public Lesson getLesson()
    {
        return lesson;
    }

    public Examination getExamination()
    {
        return examination;
    }

    public boolean isEnrolled()
    {
        return enrolled;
    }
}
